package javaStudy.反射;

public class Student {
    private String name;
     String id;
    public int age;
    public Student(){}

    private Student(String name){
        this.name=name;
    }
    public Student(String name, String id, int age) {
        this.name = name;
        this.id = id;
        this.age = age;
    }
    public void method(){
        System.out.println("method");
    }
    public void method1(String name,int age){
        System.out.println(name+","+age);
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", id='" + id + '\'' +
                ", age=" + age +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
